namespace SqlQueryBuilder.Criterias
{
    /// <summary>
    /// Insert Criteria
    /// </summary>
    public class Insert : ICriteria
    {
        private readonly string tableName;

        /// <summary>
        /// Initializes a new instance of the <see cref="Insert"/> class.
        /// </summary>
        /// <param name="tableName">Name of the table.</param>
        public Insert(string tableName)
        {
            this.tableName = tableName;
        }

        /// <summary>
        /// Builds the criteria.
        /// </summary>
        /// <returns></returns>
        public string BuildCriteria()
        {
            return string.Format("INSERT INTO {0} ",tableName);
        }
    }
}